-- GENERATED SPELL FOR [Bloodaxe Evoker] --


function spell0_9693(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(13748,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9693', 1000, 1)
end

function spell1_9693(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(15744,pUnit)
pUnit:RegisterEvent('Sorts_9693', 6344, 1)
end

function spell2_9693(pUnit, Event) --@Flamecrack,Self--
pUnit:FullCastSpellOnTarget(15743,pUnit)
pUnit:RegisterEvent('Sorts_9693', 2500, 1)
end

function Sorts_9693(pUnit, Event)
local choix_sorts_9693 = math.random(0, 2)
if choix_sorts_9693 == 0 then
pUnit:RegisterEvent('spell0_9693', 1, 1)
end
if choix_sorts_9693 == 1 then
pUnit:RegisterEvent('spell1_9693', 1, 1)
end
if choix_sorts_9693 == 2 then
pUnit:RegisterEvent('spell2_9693', 1, 1)
end
end

function mob9693_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9693', math.random(1500, 3000), 1)
end

function mob9693_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9693_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9693_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9693, 1, 'mob9693_Action')
RegisterUnitEvent(9693, 2, 'mob9693_Leave')
RegisterUnitEvent(9693, 3, 'mob9693_Kill')
RegisterUnitEvent(9693, 4, 'mob9693_Die')
